x86/mm: Don't fail to nominate for paging on type flag, rather look at type count
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 2 Feb 2012 12:22:34 +0000 (12:22 +0000)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 2 Feb 2012 12:22:34 +0000 (12:22 +0000)
commit6623226237f1c2db19ed5b91b6dca4d1f8a6f8d7
tree0006bb2e9ab9f1192301555d06c2727661231222
parentaf518d3ea10ea088182525f24243d8ad29ecf2ba
x86/mm: Don't fail to nominate for paging on type flag, rather look at type count

Xen doesn't clean the type flag when dropping the type count for a page to
zero. So, looking at the type flag when nominating a page for paging it's
incorrect. Look at the type count instead.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Signed-off-by: Adin Scannell <adin@scannell.ca>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m.c